package com.jsyl.lwbk.business.mapper;

import com.jsyl.lwbk.business.domain.TrainPackage;
import com.jsyl.lwbk.business.dto.TrainPackageDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Fitch
 * 2022/2/21
 */
public interface TrainPackageMapper {

    List<TrainPackageDTO> findList(@Param("ageGrade")Integer ageGrade,
                                   @Param("courseId")String courseId);

    int update(TrainPackage trainPackage);

    TrainPackage getById(@Param("id") Long id);

    List<TrainPackageDTO> getParentTrainPackage();

    int insert(TrainPackage trainPackage);

    int checkTrainNameUnique(String trainName);

    int deleteById(@Param("id")String id);

    List<TrainPackageDTO> detailList(@Param("trainPackageId") Long trainPackageId);

    List<TrainPackageDTO> findListByIds(@Param("ids")List<String> ids,@Param("classId")Long classId);

}
